package com.nineclock.system.service;


import com.nineclock.common.entity.PageResult;
import com.nineclock.system.dto.SysCompanyUserDTO;
import com.nineclock.system.excel.ExcelMember;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface SysCompanyUserService {
    SysCompanyUserDTO getCurrentAdmin();

    List<SysCompanyUserDTO> queryCompanyMemberList();

    PageResult<SysCompanyUserDTO> members(Integer page, Integer pageSize, String keyword, Long departmentId);

    void uploadExcel(MultipartFile excelFile) throws IOException;
    /**
     * 处理解析完毕之后的员工数据, 进行数据组装及持久化操作
     */
    void saveData(List<ExcelMember> list);

    Integer queryUserCountByDepartmentIds(List<Long> departmentIds);

    SysCompanyUserDTO queryOne(String mobile);

    List<SysCompanyUserDTO> queryCompanyUser(Long companyId, Long userId);
}
